package de.greenrobot.daoexample.model;

/**
 * Created by hy on 2016/3/22.
 */
public class WorkYear {
    private WorkMonth Jan;
    private WorkMonth Feb;
    private WorkMonth Mar;
    private WorkMonth Apr;
    private WorkMonth May;
    private WorkMonth Jun;
    private WorkMonth Jul;
    private WorkMonth Aug;
    private WorkMonth Sep;
    private WorkMonth Oct;
    private WorkMonth Nov;
    private WorkMonth Dec;

    public WorkMonth getJan() {
        return Jan;
    }

    public void setJan(WorkMonth jan) {
        Jan = jan;
    }

    public WorkMonth getFeb() {
        return Feb;
    }

    public void setFeb(WorkMonth feb) {
        Feb = feb;
    }

    public WorkMonth getMar() {
        return Mar;
    }

    public void setMar(WorkMonth mar) {
        Mar = mar;
    }

    public WorkMonth getApr() {
        return Apr;
    }

    public void setApr(WorkMonth apr) {
        Apr = apr;
    }

    public WorkMonth getMay() {
        return May;
    }

    public void setMay(WorkMonth may) {
        May = may;
    }

    public WorkMonth getJun() {
        return Jun;
    }

    public void setJun(WorkMonth jun) {
        Jun = jun;
    }

    public WorkMonth getJul() {
        return Jul;
    }

    public void setJul(WorkMonth jul) {
        Jul = jul;
    }

    public WorkMonth getAug() {
        return Aug;
    }

    public void setAug(WorkMonth aug) {
        Aug = aug;
    }

    public WorkMonth getSep() {
        return Sep;
    }

    public void setSep(WorkMonth sep) {
        Sep = sep;
    }

    public WorkMonth getOct() {
        return Oct;
    }

    public void setOct(WorkMonth oct) {
        Oct = oct;
    }

    public WorkMonth getNov() {
        return Nov;
    }

    public void setNov(WorkMonth nov) {
        Nov = nov;
    }

    public WorkMonth getDec() {
        return Dec;
    }

    public void setDec(WorkMonth dec) {
        Dec = dec;
    }

    public WorkMonth getWorkMonth(String month) {
        switch (month) {
            case "01":
                return getJan();
            case "02":
                return getFeb();
            case "03":
                return getMar();
            case "04":
                return getApr();
            case "05":
                return getMay();
            case "06":
                return getJun();
            case "07":
                return getJul();
            case "08":
                return getAug();
            case "09":
                return getSep();
            case "10":
                return getOct();
            case "11":
                return getNov();
            case "12":
                return getDec();
            default:
                return null;
        }
    }
}
